﻿namespace WorkFlow.Engine
{
    public static class WfFieldCode
    {
        public const int DbFrozenState = 0; //冻结状态
        public const int DbReadyState = 1; //就绪状态
        public const int DbRollbackState = 2; //回退状态
        public const int DbRunState = 3; //运行状态
        public const int DbSuspendState = 4; //挂起状态
        public const int DbCompleteState = 5; //完成状态
        public const int DbTerminateState = 6; //终止状态

        public const int DbOrSplit = 7; //条件分支
        public const int DbOrJoin = 8; //条件合并

        public const int DbAndSplit = 9; //并行分支
        public const int DbAndJoin = 10; //并行合并

        public const int DbXorSplit = 11; //条件并行分支路由
        public const int DbXorJoin = 12; //条件并行合并路由
        public const int DBMainTypeRollback = 28;//回退活动

        // ReSharper disable once UnusedMember.Global
        public const int DbCommonProc = 13; //一般流程(类型)

        // ReSharper disable once UnusedMember.Global
        public const int DbOtherProc = 14; //其他类型流程

        public const int DbMainRouteType = 15; //属于路由类型(活动所属主类型)
        public const int DbMainCommonType = 16; //一般类型(活动所属主类型)

        public const int DbMainTyeFinish = 17; //结束活动

        // ReSharper disable once UnusedMember.Global
        public const int DbMainTypeStart = 18; //开始活动

        // ReSharper disable once UnusedMember.Global
        public const int DbTrue = 19; //是否为真

        // ReSharper disable once UnusedMember.Global
        public const int DbFalse = 20; //为假

        // ReSharper disable once UnusedMember.Global
        public const int DbLocked = 21; //被锁定

        // ReSharper disable once UnusedMember.Global
        public const int DbUnLocked = 22; //未被锁定

        // ReSharper disable once UnusedMember.Global
        public const int DbMan = 23; //男

        // ReSharper disable once UnusedMember.Global
        public const int DbWoman = 24; //女

        // ReSharper disable once UnusedMember.Global
        public const int DbNone = -1; //空 null

        // ReSharper disable once UnusedMember.Global
        public const int DbTypeAbstractOrg = 31;//抽象组织类型

        // ReSharper disable once UnusedMember.Global
        public const int DbTypeSpecifiedOrg = 30;//具体组织类型

        // ReSharper disable once UnusedMember.Global
        public const int DbTypeRole = 34;//角色类型

        // ReSharper disable once UnusedMember.Global
        public const int DBTypeUser = 35;//用户类型
    }
}